getApp(), Page({
    data: {
        navigatorTitle: "复制连接",
        userId: "0",
        appid: ""
    },
    onLoad: function(a) {},
    onShow: function() {
        var a = wx.getStorageSync("userId"), t = wx.getStorageSync("wxapp");
        console.log("wxapp", t), this.setData({
            userId: a,
            appid: t.appid
        });
    },
    copy: function() {
        var a = "小程序推广连接：pages/index/index?promoteId=" + wx.getStorageSync("userId") + "\n小程序appid：" + wx.getStorageSync("wxapp").appid + "\n寄快递上门取件，运费5元起，顺丰，京东，德邦，韵达，等上门取件";
        wx.setClipboardData({
            data: a,
            success: function(a) {
                wx.showToast({
                    title: "复制成功",
                    icon: "none",
                    mask: "true"
                });
            }
        });
    }
});